<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html lang="pt-BR">
    <head>
        <meta charset="UTF-8" />
        <link rel="shortcut icon" href="../img/icone.ico">
        <title>Controle Bens Patrimoniais Login</title>
        <link href="<c:url value="login.css"/>" rel="stylesheet" type="text/css" media="screen" />
        <script src="<c:url value="/js/jquery-1.8.3.js" />" type='text/javascript'></script>
        <script type='text/javascript'>
            $(function(){
                $("#mensagemLogin").hide();
                    
                function aplicaCSS(){
                    $('#mensagemLogin').slideDown(1000);
                }
                
                <% try{if(request.getParameter("erro").toLowerCase().equals("true")){ %>
                    <%= "aplicaCSS();" %>
                <% }}catch(Exception e){} %>
            });
        </script>
    </head>
    <body class="login">
        <div id="login"><h1>Controle Bens Patrimoniais</h1><br>

            <form name="loginform" id="loginform" action="login.php" method="POST">
                <p>
                    <label for="user_login">Nome de usuário<br />
                        <input type="text" name="txtUsuario" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
                </p>
                <p>
                    <label for="user_pass">Senha<br />
                        <input type="password" id="user_pass" name='txtSenha' class="input" value="" size="20" tabindex="20" /></label>
                </p>
                <p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> Lembrar</label></p>
                <p class="submit">
                    <input type="submit" name="btnLogin" id="btnLogin" class="button-primary" value="Login" tabindex="100" />
                </p>
            </form>
        </div>
        <p id='mensagemLogin'>Usuário e senha incorreto!</p>

        <div id='rodape'>
            <p id='about'>Sobre o <a href='about.php'>Controle de Bens Parimoniais</a></p>
            <p id='suporte'>Contato com o  <a href="mailto:controlebens@googlegroups.com">Suporte</a></p>
        </div>
        <div class="clear"></div>
    </body>
</html>